VIEWER=/usr/bin/okular

ifeq "$(shell hostname)" "pc2002"
#	VIEWER=/usr/kde/3.5/bin/kghostview
	VIEWER=/usr/kde/3.5/bin/kpdf
	IPETOIPE=/opt/opt/ipe/bin/ipetoipe
	export LD_LIBRARY_PATH=/opt/opt/ipe/lib/
endif
ifeq "$(shell hostname)" "spade"
        VIEWER=/usr/bin/okular
	IPETOIPE=ipetoipe
endif

all: pdf

pdf: newspaper_article.tex
	pdflatex newspaper_article.tex
#	bibtex newspaper_article
#	pdflatex newspaper_article.tex
#	pdflatex newspaper_article.tex

view: pdf
	$(VIEWER) newspaper_article.pdf& 

#pdfpics: 

clean:
	rm -f newspaper_article.log
	rm -f newspaper_article.aux
	rm -f newspaper_article.bbl
	rm -f newspaper_article.blg
	rm -f newspaper_article.pdf
	rm -f newspaper_article.out
	rm -f newspaper_article.toc
	rm -f newspaper_article.ps
	rm -f newspaper_article.dvi
	rm -f newspaper_article.lof
	rm -f newspaper_article.lol
	rm -f newspaper_article.idx
	rm -f newspaper_article.tcp
	rm -f newspaper_article.tps
	rm -f newspaper_article.brf

cleaner: clean
	rm -f *~
